package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * BE_OrderLite实体类
 * 
 * @author 
 *
 */
public class BeOrderlite {
	/***/
	private Object ID; 
	/***/
	private Integer OrderType; 
	/***/
	private java.time.Instant Datee; 
	/***/
	private Integer EmpID; 
	/***/
	private String UserNo; 
	/***/
	private String UserName; 
	/***/
	private String Description; 
	/**
	 * 实例化
	 */
	public BeOrderlite() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public BeOrderlite(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("OrderType") instanceof Number) {
			this.setOrderType(((Number) obj.get("OrderType")).intValue());
		}
		if (obj.get("Datee") instanceof java.time.Instant) {
			this.setDatee((java.time.Instant) obj.get("Datee"));
		}
		if (obj.get("EmpID") instanceof Number) {
			this.setEmpID(((Number) obj.get("EmpID")).intValue());
		}
		if (obj.get("UserNo") instanceof String) {
			this.setUserNo((String) obj.get("UserNo"));
		}
		if (obj.get("UserName") instanceof String) {
			this.setUserName((String) obj.get("UserName"));
		}
		if (obj.get("Description") instanceof String) {
			this.setDescription((String) obj.get("Description"));
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getOrderType() != null) {
			result.put("OrderType",this.getOrderType());
		}
		if (this.getDatee() != null) {
			result.put("Datee",this.getDatee());
		}
		if (this.getEmpID() != null) {
			result.put("EmpID",this.getEmpID());
		}
		if (this.getUserNo() != null) {
			result.put("UserNo",this.getUserNo());
		}
		if (this.getUserName() != null) {
			result.put("UserName",this.getUserName());
		}
		if (this.getDescription() != null) {
			result.put("Description",this.getDescription());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取OrderType
	 * 
	 * @return
	 */
	public Integer getOrderType() {
		return OrderType;
	}

	/**
	 * 设置OrderType
	 * 
	 * @param OrderType
	 */
	public void setOrderType(Integer OrderType) {
		this.OrderType = OrderType;
	}
	
	/**
	 * 获取Datee
	 * 
	 * @return
	 */
	public java.time.Instant getDatee() {
		return Datee;
	}

	/**
	 * 设置Datee
	 * 
	 * @param Datee
	 */
	public void setDatee(java.time.Instant Datee) {
		this.Datee = Datee;
	}
	
	/**
	 * 获取EmpID
	 * 
	 * @return
	 */
	public Integer getEmpID() {
		return EmpID;
	}

	/**
	 * 设置EmpID
	 * 
	 * @param EmpID
	 */
	public void setEmpID(Integer EmpID) {
		this.EmpID = EmpID;
	}
	
	/**
	 * 获取UserNo
	 * 
	 * @return
	 */
	public String getUserNo() {
		return UserNo;
	}

	/**
	 * 设置UserNo
	 * 
	 * @param UserNo
	 */
	public void setUserNo(String UserNo) {
		this.UserNo = UserNo;
	}
	
	/**
	 * 获取UserName
	 * 
	 * @return
	 */
	public String getUserName() {
		return UserName;
	}

	/**
	 * 设置UserName
	 * 
	 * @param UserName
	 */
	public void setUserName(String UserName) {
		this.UserName = UserName;
	}
	
	/**
	 * 获取Description
	 * 
	 * @return
	 */
	public String getDescription() {
		return Description;
	}

	/**
	 * 设置Description
	 * 
	 * @param Description
	 */
	public void setDescription(String Description) {
		this.Description = Description;
	}

	@Override
	public String toString() {
		return "BeOrderlite [ID=" + ID + " , OrderType=" + OrderType + " , Datee=" + Datee + " , EmpID=" + EmpID + " , UserNo=" + UserNo + " , UserName=" + UserName + " , Description=" + Description + "  ]";
	
	}
	
	
}
